<!DOCTYPE HTML PUBLIC "-//ORA//DTD CD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>[Chapter 10] Cloneable</TITLE>
<META NAME="author" CONTENT="Mark Grand">
<META NAME="date" CONTENT="Fri Aug  8 15:24:06 1997">
<META NAME="form" CONTENT="html">
<META NAME="metadata" CONTENT="dublincore.0.1">
<META NAME="objecttype" CONTENT="book part">
<META NAME="otheragent" CONTENT="gmat dbtohtml">
<META NAME="publisher" CONTENT="O'Reilly &amp; Associates, Inc.">
<META NAME="source" CONTENT="SGML">
<META NAME="subject" CONTENT="java">
<META NAME="title" CONTENT="Java Language Reference">
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript">
</HEAD>
<body vlink="#551a8b" alink="#ff0000" text="#000000" bgcolor="#FFFFFF" link="#0000ee">

<DIV CLASS=htmlnav>
<H1><a href='index.htm'><IMG SRC="gifs/smbanner.gif"
     ALT="Java Language Reference" border=0></a></H1>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch10_05.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><B><FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1">Chapter 10<br>The java.lang Package</FONT></B></TD>
<td width=172 align=right valign=top><A HREF="ch10_07.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
</table>

&nbsp;
<hr align=left width=515>
</DIV>
<DIV CLASS=refnamediv>
<H1>Cloneable</H1>

<H2>Name</H2>

Cloneable

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch10-REFSECT1-AUTOID.44">Synopsis</A></h2>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Interface Name:<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>java.lang.Cloneable</tt>

<p>
<DT CLASS=varlistentry>Super-interface:<br>
<DD>

<P CLASS=para>
None

<p>
<DT CLASS=varlistentry>Immediate Sub-interfaces:<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>java.text.CharacterIterator</tt>

<p>
<DT CLASS=varlistentry>Implemented by:<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>java.awt.GridBagConstraints</tt>,
<tt CLASS=literal>java.awt.Insets</tt>,

<P CLASS=para>
<tt CLASS=literal>java.awt.image.ImageFilter</tt>,

<P CLASS=para>
<tt CLASS=literal>java.text.BreakIterator</tt>,

<P CLASS=para>
<tt CLASS=literal>java.text.Collator</tt>,
<tt CLASS=literal>java.text.DateFormat</tt>,

<P CLASS=para>
<tt CLASS=literal>java.text.DateFormatSymbols</tt>,

<P CLASS=para>
<tt CLASS=literal>java.text.DecimalFormatSymbols</tt>,

<P CLASS=para>
<tt CLASS=literal>java.text.Format</tt>,
<tt CLASS=literal>java.text.NumberFormat</tt>,

<P CLASS=para>
<tt CLASS=literal>java.util.BitSet</tt>,
<tt CLASS=literal>java.util.Calendar</tt>,

<P CLASS=para>
<tt CLASS=literal>java.util.Date</tt>,
<tt CLASS=literal>java.util.Hashtable</tt>,

<P CLASS=para>
<tt CLASS=literal>java.util.Locale</tt>,
<tt CLASS=literal>java.util.TimeZone</tt>,

<P CLASS=para>
<tt CLASS=literal>java.util.Vector</tt>

<p>
<DT CLASS=varlistentry>Availability:<br>
<DD>

<P CLASS=para>
JDK 1.0 or later</DL>
</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch10-REFSECT1-AUTOID.45">Description</A></h2>

<P CLASS=para>
<A NAME="MAN.CLOANABLE.1"></A>The <tt CLASS=literal>Cloneable</tt>
interface provides no functionality; it declares no methods
or variables. This interface is simply provided as a way of indicating
that an object can be cloned (that is, copied). A class that is declared
as implementing this interface is assumed to have overridden the
<tt CLASS=literal>Object</tt> class' implementation of <tt CLASS=literal>clone()</tt> with an implementation that can successfully clone instances
of the class. The implementation of <tt CLASS=literal>clone()</tt> that is
provided by the <tt CLASS=literal>Object</tt> class simply throws
a <tt CLASS=literal>CloneNotSupportedException</tt>.

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch10-REFSECT1-AUTOID.46">Interface Declaration</A></h2>

<DIV CLASS=screen>
<P>
<PRE>
public interface java.lang.Cloneable {
}
</PRE>
</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch10-REFSECT1-AUTOID.47">See Also</A></h2>

<P CLASS=para>
<A HREF="ch09_04.htm#JLR2-CH-9-SECT-4.1">Exceptions</A>;
<A HREF="ch10_14.htm">Object</A>

</DIV>


<DIV CLASS=htmlnav>

<P>
<HR align=left width=515>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch10_05.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><a href="index.htm"><img src='gifs/txthome.gif' border=0 alt='Home'></a></td>
<td width=172 align=right valign=top><A HREF="ch10_07.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
<tr>
<td width=172 align=left valign=top>ClassLoader</td>
<td width=171 align=center valign=top><a href="index/idx_0.htm"><img src='gifs/index.gif' alt='Book Index' border=0></a></td>
<td width=172 align=right valign=top>Compiler</td>
</tr>
</table>
<hr align=left width=515>

<IMG SRC="gifs/smnavbar.gif" USEMAP="#map" BORDER=0> 
<MAP NAME="map"> 
<AREA SHAPE=RECT COORDS="0,0,108,15" HREF="../javanut/index.htm"
alt="Java in a Nutshell"> 
<AREA SHAPE=RECT COORDS="109,0,200,15" HREF="../langref/index.htm" 
alt="Java Language Reference"> 
<AREA SHAPE=RECT COORDS="203,0,290,15" HREF="../awt/index.htm" 
alt="Java AWT"> 
<AREA SHAPE=RECT COORDS="291,0,419,15" HREF="../fclass/index.htm" 
alt="Java Fundamental Classes"> 
<AREA SHAPE=RECT COORDS="421,0,514,15" HREF="../exp/index.htm" 
alt="Exploring Java"> 
</MAP>
</DIV>

</BODY>
</HTML>
